package com.tt.controller;

import com.tt.entity.vo.DepartmentBarVO;
import com.tt.service.DepartmentBarService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *
 * </p>
 *
 * @version 1.0
 * @auther sugarttt
 * @since 2022-11-10 10:31:12
 */
@RestController
public class DepartmentBarController {

    private final DepartmentBarService departmentBarService;

    public DepartmentBarController(DepartmentBarService departmentBarService) {
        this.departmentBarService = departmentBarService;
    }


    @GetMapping("/getDepartmentBar")
    public DepartmentBarVO getDepartmentBar(String beginYear, String endYear, Integer provinceId) {
        return departmentBarService.getDepartmentBar(beginYear, endYear, provinceId);
    }
}
